<template>
  <div>
    <shop-header/>
    <div class="tab">
      <div class="tab-item">
        <router-link to="/shop/goods" replace>点餐</router-link>
      </div>
      <div class="tab-item">
        <router-link to="/shop/ShopRatings" replace>评价</router-link>
      </div>
      <div class="tab-item">
        <router-link to="/shop/ShopInfo" replace>商家</router-link>
      </div>
    </div>

    <router-view/>
  </div>
</template>

<script>
  import ShopHeader from '../../../pages/Twolevelrouting/goods/ShopHeader.vue'
  export default {
    components: {
      ShopHeader
    }
  }
</script>

<style lang="stylus" rel="stylesheet/stylus">
  @import "../../../../assets/common/stylus/mixins.styl"
  .tab
    height 40px
    line-height 40px
    bottom-border-1px(rgba(7, 17, 27, 0.1))
    .tab-item
      float left
      width: 33.33333%
      text-align center
      font-size 14px
      color rgb(77, 85, 93)
      a
        display block
        &.router-link-active
          color #02a774
</style>
